package com.rpcdemo.entity;

import org.springframework.data.elasticsearch.annotations.Document;

@Document(indexName = "drug", type = "_doc", shards = 1)
public class Drug<name> {
    private String name;
    private String company;
    private String approval;
    private String spec;

    public Drug() {
    }

    public Drug(String name, String company, String approval, String spec) {
        this.name = name;
        this.company = company;
        this.approval = approval;
        this.spec = spec;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }
}
